﻿using System;

using ExtensibleEventViewer.Console.DomainModel;


namespace ExtensibleEventViewer.Console.Helpers
{
	internal static class TrackedEventLogExtensions
	{
		internal static bool IsTracked(this TrackedEventLog eventLog, string computerName, string providerID, string eventLogName)
		{
			if (string.Equals(computerName, eventLog.ComputerName, StringComparison.InvariantCultureIgnoreCase))
			{
				if (string.Equals(eventLogName, eventLog.EventLogName, StringComparison.InvariantCultureIgnoreCase))
				{
					if (string.Equals(providerID, eventLog.ProviderID, StringComparison.InvariantCultureIgnoreCase))
					{
						return true;
					}
				}
			}

			return false;
		}
	}
}
